#pragma once
#include "CommonHeaders.h"

class Jogo
{
private:
	Pilha coluna1,coluna2,coluna3,coluna4,coluna5,coluna6,coluna7,coluna8;
	Carta cima1,cima2,cima3,cima4;
	Carta reserva1,reserva2,reserva3,reserva4, aux;
	Carta baralho[54];
	int indicesUsados[54];
	int i,j,num,naipe,indice,posX,posY;
	bool done;
	void iniciaGame();
	void destroiGame();
	ALLEGRO_DISPLAY *janela;
    ALLEGRO_BITMAP *fundo;
	ALLEGRO_BITMAP *cartas;
	ALLEGRO_BITMAP *icon;
	ALLEGRO_BITMAP *win;
	ALLEGRO_EVENT_QUEUE *fila;
	ALLEGRO_EVENT ev;
	ALLEGRO_TIMER *timer;
	int lastX[16];
	int lastY[16];
	

public:
	Jogo();
	~Jogo();
	void iniciaGrafico();
	bool verificaVetor(int, int*);
	void printGame();
	int verificaClique(int,int);
	bool transfere(int, int);

};
